<?xml version="1.0" encoding="utf-8"?>
<process version="1" name="Manual" 
	xmlns="http://www.nginn.org/WorkflowDefinition.1_0.xsd" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:gui="http://www.nginn.org/NGinnGui"
	xmlns:ngidx="http://www.nginn.org/Indexing">
    <dataTypes>
		<enum name="TaskCloseCode">
            <value>RepeatTask</value>
            <value>SkipTask</value>
        </enum>
    </dataTypes>
    <variables>
		<variable name="userName" type="string" required="true" dir="In"  gui:dataSource="aaaaabbbccc" ngidx:tokenize="0" ngidx:index="1"/>
		<variable name="decision" type="TaskCloseCode" dir="Local" required="false" />
		<variable name="comment" type="string" dir="Local" required="false" />
    </variables>
    <body>
        <places>
            <place id="start" type="Start" />
            <place id="end" type="End" />
        </places>
        <tasks>
            <task id="T1" type="Manual" gui:categoryId="1998">
			<variables>
				<variable name="userName" type="string" required="true" dir="In"  />
				<variable name="decision" type="TaskCloseCode" dir="Out" required="true" />
				<variable name="comment" type="string" dir="Out" required="true" />
			</variables>
			<parameters>
				<param variable="AssigneeId"><value>1</value></param>
				<param variable="Title"><expr>"Nowe zadanie - od ${data.userName}"</expr></param>
				<param variable="Description"><expr>"Użytkownik: ${data.userName}"</expr></param>
			</parameters>
            </task>
        </tasks>
        <flows>
            <flow from="start" to="T1" />
            <flow from="T1" to="end" />
        </flows>
    </body>
</process>